package com.sofwin.controller.contents;

import com.sofwin.dto.FinancialDto;
import com.sofwin.service.contents.FinancialService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @program: ssm-parent
 * @description: 纳税、借款、担保及或有负债页面controller层
 * @author: Mr.Xq
 * @create: 2021-04-27 10:16
 * @version:
 **/
@Controller
@RequestMapping("contents/financial")
public class FinancialController {

    @Autowired
    private FinancialService service;

    @RequestMapping("data")
    public String data(Integer companyId, Model model){
        FinancialDto dto = service.selectFinancialsByCompanyId(companyId);
        model.addAttribute("data",dto);
        return "c_information/contents/financial";
    }

}
